package com.cb.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cb.dto.OrdersDto;
import com.cb.entity.Orders;

public interface OrderService extends IService<Orders> {

    //用户下单
    void submit(Orders orders);

    //订单管理
    IPage<OrdersDto> userPage(Page<Orders> ordersPage);

    //再来一单
    void again(Orders orders);

    //管理端查询订单
    IPage<OrdersDto> pageOrders(Page<Orders> ordersPage, String number, String beginTime, String endTime);

    //订单派送
    void send(Orders orders);
}
